﻿using MapleLeaf.Core.Enum.Auth;

namespace MapleLeaf.Application.CookBook.Parameter {
    /// <summary>
    /// 登录参数
    /// </summary>
    public record LoginParameter {
        /// <summary>
        /// 用户名
        /// </summary>
        public required string UserName { get; init; }
        /// <summary>
        /// 密码
        /// </summary>
        public required string Password { get; init; }
        /// <summary>
        /// 验证码Key
        /// </summary>
        public required string CaptchaKey { get; init; }
        /// <summary>
        /// 验证码
        /// </summary>
        public required string CaptchaCode { get; init; }
        /// <summary>
        /// 设备类型
        /// </summary>
        /// <example>0</example>
        public AuthDeviceTypeEnum Device { get; set; } = AuthDeviceTypeEnum.CLOUD;
    }
}
